@tailwind base;
@tailwind components;
@tailwind utilities;

/* Emoji compatibility - ensure consistent rendering across platforms */
.emoji-twemoji img {
  display: inline-block !important;
  vertical-align: middle !important;
  max-width: none !important;
}

@layer base {
  :root {
    --dark-blue: 230 35% 7%;
    --dark-blue-light: 230 30% 10%;
    --dark-blue-lighter: 230 25% 14%;
    --bera-blue: 220 90% 60%;
    --bera-yellow: 55 100% 60%;
    --bera-orange: 25 100% 60%;
    --neon-green: 120 100% 50%;

    --background: 0 0% 0%;
    --foreground: 0 0% 100%;
    --card: 0 0% 3%;
    --card-foreground: 0 0% 100%;
    --popover: 0 0% 3%;
    --popover-foreground: 0 0% 100%;
    --primary: 267 100% 61%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 9%;
    --secondary-foreground: 0 0% 100%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 70%;
    --accent: 267 100% 61%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 100% 50%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 20%;
    --input: 0 0% 20%;
    --ring: 267 100% 61%;
    --radius: 0.5rem;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-dark-blue text-white;
  }
  html {
    scroll-behavior: smooth;
  }
}

@layer utilities {
  .shadow-glow {
    box-shadow: 0 0 15px 2px rgba(78, 115, 248, 0.15);
  }

  .object-top-right {
    object-position: top right;
  }
}

/* Custom styles for the website */
.bg-gradient-radial {
  background-image: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Animation for hero section */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Floating coins animation */
.coin {
  opacity: 0.8;
  animation-duration: var(--duration);
  animation-name: float-coin;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

@keyframes float-coin {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(var(--float-distance)) rotate(var(--rotation));
  }
}

.coin-1 {
  top: 15%;
  right: 20%;
  --duration: 4s;
  --float-distance: -30px;
  --rotation: 15deg;
}

.coin-2 {
  top: 30%;
  right: 35%;
  --duration: 6s;
  --float-distance: -40px;
  --rotation: -20deg;
}

.coin-3 {
  top: 50%;
  right: 15%;
  --duration: 5s;
  --float-distance: -25px;
  --rotation: 10deg;
}

.coin-4 {
  top: 65%;
  right: 30%;
  --duration: 7s;
  --float-distance: -35px;
  --rotation: -15deg;
}

.coin-5 {
  top: 25%;
  right: 10%;
  --duration: 5.5s;
  --float-distance: -20px;
  --rotation: 25deg;
}

.coin-6 {
  top: 70%;
  right: 5%;
  --duration: 4.5s;
  --float-distance: -30px;
  --rotation: -10deg;
}

/* Partners section animations */
@keyframes scroll-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-scroll-right {
  animation: scroll-right 30s linear infinite; /* Increased speed from 60s to 30s */
}

.animate-scroll-left {
  animation: scroll-left 30s linear infinite; /* Increased speed from 60s to 30s */
}

/* Ensure the partner rows don't show scrollbars */
.partners-row-right,
.partners-row-left {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* NFT Carousel animations */
@keyframes carousel-slide-in {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes carousel-slide-out {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}


/* Binary Code Animation */
.line-code {
  position: relative;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
  font-family: monospace;
}

.line-code:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #FFCC00; /* Yellow line */
  opacity: 0.4;
  z-index: 10;
}

.line-code__top,
.line-code__bott {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  white-space: nowrap;
}

.line-code__top {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);
}

.line-code__bott {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.line-code__top .letter-col {
  position: relative;
  top: 50%;
  display: inline-block;
  will-change: transform;
  animation: gotop 2s linear infinite;
}

.line-code__bott .letter-col {
  position: relative;
  top: -50%;
  display: inline-block;
  will-change: transform;
  animation: gobott 2s linear infinite;
}

.line-code__top .letter-col span,
.line-code__bott .letter-col span {
  display: block;
  color: #4E73F8; /* Blue text */
  height: 28px;
  width: 16px;
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  opacity: 0.7;
}

@keyframes gotop {
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes gobott {
  to { transform: translate3d(0, 50%, 0); }
}

/* Progress Section Animations */
@keyframes progress-fill {
  0% {
    width: 0%;
  }
  100% {
    width: var(--progress-width);
  }
}

@keyframes progress-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

@keyframes number-count {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-hover {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-5px) scale(1.02);
  }
}

.progress-card {
  transition: all 0.3s ease;
}

.progress-card:hover {
  animation: card-hover 0.3s ease forwards;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.progress-bar-animated {
  animation: progress-fill 2s ease-out forwards;
}

.progress-glow {
  animation: progress-glow 2s ease-in-out infinite;
}

.number-animated {
  animation: number-count 1s ease-out forwards;
}